package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsUserAccountMapper;
import com.qf.pojo.DtsUserAccount;
import com.qf.service.DtsUserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * author:z
 * time:2021/12/2 8:28
 * description:
 */
@Service
public class DtsUserAccountServiceImpl implements DtsUserAccountService {

    @Autowired
    DtsUserAccountMapper userAccountMapper;

    @Override
    public DtsUserAccount findById(Integer id) {
        LambdaQueryWrapper<DtsUserAccount> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(DtsUserAccount::getUserId, id);

        DtsUserAccount admin = userAccountMapper.selectOne(wrapper);

        return admin;

    }
}
